import { request } from ".";
import type { RESPONSE } from "../types/base";
import type { Issue, IssueForm, Pager } from "../types/issue";


export const reqAddIssue = (issue:IssueForm) =>request.post<null,RESPONSE>("/api/issue",issue)

export const reqGetIssueByPage = (pager:Pager) =>request.get<null,RESPONSE<{
    total:number,
    list:Issue[]
}>>("/api/issue",{
    params:pager
})

export const reqGetIssueById =(id:string) =>request.get<null,RESPONSE<Issue>>("/api/issue/"+id)
 
















